#include <msp430f5309.h>
#include <stdint.h>

#define CPU_F ((double)8000000)
#define Delay_Us(x) __delay_cycles((long)(CPU_F*(double)x/1000000.0))
#define Delay_Ms(x) __delay_cycles((long)(CPU_F*(double)x/1000.0))

extern void delay_us(uint16_t x);
extern void delay_ms(uint16_t x);

